package acm.同步赛4;

import java.util.Stack;

public class I {
    public static void main(String[] args) {

    }
    public static int fun(char[] chars){
        char symbol='+';
        Stack<Integer> stack=new Stack<>();
        int res=0;
        for (int i = 0; i < chars.length; i++) {
            if (stack.isEmpty()) {
                stack.push((int) chars[i]);
                continue;
            }

        }
        return res;
    }
    public static int compute(char symbol,int left,int right){
        switch (symbol){
            case '+':return left+right;
            case '-':return left-right;
            case '/':return left/(right==0?1:right);
            case '*':return left/(right==0?1:right);
        }
        return 0;
    }
}
